﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SRD.Model.SRD.DAO;
using System.Data;
using SRD.Model.SRD.DTO;

namespace SRD.Model.SRD.BO
{
    public class SubmissaoBO
    {
        private SubmissaoDAO dao = new SubmissaoDAO();

        public SUBMISSAO findByID(SUBMISSAO submissao)
        {
            return dao.findByID(submissao);
        }

        public IQueryable findByAll()
        {
            return dao.findAll();
        }

        public IQueryable findByProfissional(int profissionalId)
        {
            return dao.findByProfissional(profissionalId);
        }
        

        public String save(SUBMISSAO submissao)
        {
            return dao.insert(submissao);
        }

        public String update(SUBMISSAO submissao)
        {
            return dao.update(submissao);
        }

        public String delete(SUBMISSAO submissao)
        {
            return dao.delete(submissao);
        }
    }
}
